cc_library(name = "thread",
    src = "thread.cc",
    deps = [ "//base:callback" ]
)

cc_test(name = "thread_test",
    src = "thread_test.cc",
    deps = [ ":thread",
             "//base:logging",
             "//testing:gunit_main"
             ]
)

cc_library(name = "executor",
    src = "executor.cc",
    deps = [ ":thread",
             ":timer",
             "//base:callback"
             "//base:cmd_flags"
             "//base:mutex",
             "//util:time"
             ]
)

cc_test(name = "executor_test",
    src = "executor_test.cc",
    deps = [ ":executor",
             "//base:logging",
             "//testing:gunit_main"
            ]
)

cc_library(name = "timer",
    src = "timer.cc",
    deps = [ ":thread",
             "//base:callback"
             "//base:mutex",
             "//util:time"
             ]
)
